<?php
if( !defined('IN') ) die('bad request');

$GLOBALS['config']['site_name'] = '质量工程信息系统';
$GLOBALS['config']['site_domain'] = 'http://app.cqtbi.edu.cn/';
$GLOBALS['config']['on_sae']=FALSE;

//系统代号 xm，提供区别用户在不同系统中的级别level
$GLOBALS['config']['client_name'] = 'xm';

$GLOBALS['config']['client_id'] = '1034248';

$GLOBALS['config']['client_secret'] = '6623266';

$GLOBALS['config']['redirect_uri'] = "http://app.cqtbi.edu.cn/oauth";

//不需用户确定finishauthorization，需要则用authorize
$GLOBALS['config']['authorizeURL'] = "http://data.cqtbi.edu.cn/oauth/authorize";

$GLOBALS['config']['tokenURL'] = "http://data.cqtbi.edu.cn/oauth/token";

$GLOBALS['config']['resource_site']="http://zlgc.cqtbi.edu.cn/qltydata/";
$GLOBALS['config']['upload_swf']="http://zlgc.cqtbi.edu.cn/qltydata/swf/swfupload.swf";//ajax/uploadform.tpl.html
$GLOBALS['config']['upload_url'] = "http://zlgc.cqtbi.edu.cn/qltydata/upload.php";

//encrypt and decrypt
$GLOBALS['config']['key'] ='CqD204';

//SMTP Mail
$GLOBALS['config']['smtp_server']="smtp.exmail.qq.com";
$GLOBALS['config']['smtp_account']="xmk@cqtbi.esch.cn";
$GLOBALS['config']['smtp_password']="cqtbid204%";
$GLOBALS['config']['smtp_port']=465;
/*
*项目状态数组
*/
$GLOBALS['project_status']=Array(
	'ABANDON'=>0,			//某个时期允许项目放弃，或项目科设置
	'CREATED'=>1,			//项目创建初始状态
	'PARTICIPANT'=>2,		//设置好参与人时
	'APPLYFILE'=>3,			//上传完全部申报材料
	'WAITING_FOR_VERIFY'=>4,	//提交等待项目科审核
	'REJECTED'=>5,			//初审不通过
	'FIRST_TRIAL'=>6,		//项目科初审通过，等待立项评审
	'ESTABLISHED'=>7,		//立项成功
	'WAITING_FOR_UPGRADE'=>8,	//立项评审评分高，推荐参加市级教改项目申报
	'CANCEL'=>9,			//市级立项成功
	'CHANGING'=>10,			//提交调整申请，修改后
	'RECEPTED'=>11,			//项目科审核通过
	'REFUSED'=>12,			//拒绝修改，删除临时保存
	'MIDDLE_FILE'=>13,		//中期文件已提交
	'FINAL_FILE'=>14,		//在结题时间，提示提交结题材料，上传完所有结题材料后，状态设置为此状态
	'WAIT_LAST_TRIAL'=>15,	//上传完资料才能提交结题申请，提交后材料不能再进行删除
	'NEXT_TURN'=>16,			//延期申请
	'DONE'=>17				//结题

);

//需要商议
$GLOBALS['score_rank']=Array(
	'A'=>1.0,
	'B'=>0.8,
	'C'=>0.6,
	'D'=>0.4,
	'E'=>0.2,
	'F'=>0.1
);
